package com.group9.handinhand.service.so;

import com.group9.handinhand.dao.model.Tag;
/**
 * Class for service of Tag
 * @author Egeid
 *
 */
public class TagSO extends AbstractBaseSO {
	
	private String tagName;
	private Tag superiorTag;
	/**
	 * converts to tag model object
	 * @return
	 */
	public Tag convertToModelObject() {
		return (Tag) convert(new Tag());
	}

	public String getTagName() {
		return tagName;
	}

	public void setTagName(String tagName) {
		this.tagName = tagName;
	}

	public Tag getSuperiorTag() {
		return superiorTag;
	}

	public void setSuperiorTag(Tag superiorTag) {
		this.superiorTag = superiorTag;
	}

	@Override
	public String toString() {
		return "TagSO [tagName=" + tagName + ", superiorTag=" + superiorTag
				+ "]";
	}
	
	
}
